package com.basic.business.pic.mapper;

import com.basic.business.pic.domain.TGoodsPic;
import com.basic.business.pic.dto.TGoodsNoImgDto;
import com.basic.common.core.mapper.BaseMapper;

import java.util.List;

/**
 * 商品主图链接管理Mapper接口
 *
 * @author zhaoxy_jn@163.com
 */
public interface TGoodsPicMapper extends BaseMapper<TGoodsPic> {

    /**
     * 删除所有数据
     *
     * @return
     */
    int truncateDate();

    /**
     * 批量保存数据
     *
     * @param list
     * @return
     */
    int saveBatch(List<TGoodsPic> list);

    /**
     * 获取商品图片链接
     * @param goodsId
     * @return
     */
    String getPicUrl(String goodsId);

    /**
     * 导出无图片商品
     * @return
     */
    List<TGoodsNoImgDto> exportNoImg();
}
